package com.demo.client.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/config")
@Slf4j
public class ConfigClientController {

    @Value("${foo}")
    private String config;

    @GetMapping("/test")
    public Object getConfigInfo() {
        log.info("请求配置文件信息：{}", config);
        return null;
    }
}
